package com.java47.pojo;

import java.io.Serializable;
import java.util.List;

public class Subject implements Serializable {
    private String sid;
    private String title;
    private String type;
    private List<Option> option;

    private Integer sum;//总票数
    private Integer js;//共有几个选项

    @Override
    public String toString() {
        return "Subject{" +
                "sid='" + sid + '\'' +
                ", title='" + title + '\'' +
                ", option=" + option +
                ", sum=" + sum +
                ", js=" + js +
                '}';
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<Option> getOption() {
        return option;
    }

    public void setOption(List<Option> option) {
        this.option = option;
    }

    public Integer getSum() {
        return sum;
    }

    public void setSum(Integer sum) {
        this.sum = sum;
    }

    public Integer getJs() {
        return js;
    }

    public void setJs(Integer js) {
        this.js = js;
    }

    public Subject() {
    }

    public Subject(String sid, String title, List<Option> option, Integer sum, Integer js) {
        this.sid = sid;
        this.title = title;
        this.option = option;
        this.sum = sum;
        this.js = js;
    }

    public Subject(String sid, String title, String type) {
        this.sid = sid;
        this.title = title;
        this.type = type;
    }
}
